home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMIGA-CD 2
/
Amiga-CD - Volume 2.iso
/
ungepackte_daten
/
1992
/
10
/
02
/
tips.ampk
/
Pythagoras
/
Abstand.bas
< prev
next >
Encoding:
Amiga (detected)
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
BASIC Source File
|
1995-06-01
|
178 b
|
9 lines
Abstand 200,20,50,120,x
PRINT "Der Abstand beträgt";x;"Pixel"
END
SUB Abstand (x1%,y1%,x2%,y2%,z) STATIC
dx% = x1%-x2%
dy% = y1%-y2%
z = SQR(dx%^2-dy%^2)
END SUB ´© 1992 M&T